package com.naizhuai.util;

import android.support.annotation.NonNull;

/**
 * @author：lichenxi
 * @date 2018/3/8 12
 * email：525603977@qq.com
 * Fighting
 */
public final class Strings {
    private final  static  String MAN="1";
    private final  static  String WOMAN="1";

    private Strings() {
    }

    public static  String firstName(String name){
        if (name.length()>2){
            return name.substring(name.length()-2);

        }else {
            return name;
        }
    }

    public static  String handleSex(@NonNull String sexnumber){
        if ("1".equals(sexnumber)){
          return "男";
        } else if ("2".equals(sexnumber)){
            return "女";
        }
        return "";
    }
}
